<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户登录</title>
</head>
<style type="text/css">
    *{
        margin: 0px;
        padding: 0px;
    }
    body{
        width: auto;
        height: auto;
        background-color: #59375A;
        display: flex;
        justify-content: center;
        flex-direction: row;
    }
    #main{
        width: 400px;
        height: 240px;
        text-align: center;
        background-color: white;
        align-items: center;
        display: flex;
        justify-content: center;
        flex: 0 0 300px;
        margin: 160px;
    }
    #main div{
        width: 400px;
        height: 55px;
    }
    #title{
        font-family: 新宋体;
        font-weight: bold;
        font-size: 25px;
        line-height: 55px;
        background-color: #6D4A70;
        text-align: left;
    }
    #user{
        width: 60%;
        height: 60%;
        background-image: url("img/ren.png");
        background-repeat: no-repeat;
        padding-left: 40px;
        background-color: #F2F2F2;
        border: 0px;
        border-radius: 5px;
    }
    #pwd{
        width: 60%;
        height: 60%;
        background-image: url("img/suo.png");
        background-repeat: no-repeat;
        padding-left: 40px;
        background-color: #F2F2F2;
        border: 0px;
        border-radius: 5px;
    }
    #foot{
        display: flex;
        justify-content: right;
    }
    #tmp{
        flex: 2;
    }
    button{
        border-radius: 5px;
        border: 1px solid white;
        flex: 2;
        width: 100px;
        height: 70%;
        align-self: center;
        background-color: #6D4A70;
    }
    #a{
        flex: 2;
        width: 60px;
        height: 30px;
        font-size: 12px;
        text-align: right;
        padding-top: 20px;
    }
</style>
<body>
    <div id="main">
        <form action="index.jsp" method="post">
            <ul style="list-style: none">
                <li>
                    <div id="title" style="width: 100%;height: 55px">login from</div>
                </li>
                <li>
                    <div>
                        <input type="text" id="user" name="user" required pattern="/^[0-9]{1}[a-z][0-9]{5,15}$/">
                    </div>
                </li>
                <li>
                    <div>
                        <input type="password" id="pwd" name="pwd" required pattern="/^[a-zA-Z0-9]{6,16}$/"/>
                    </div>
                </li>
                <li>
                    <div id="foot">
                        <div id="tmp"></div>
                        <button type="submit">sign in</button>
                        <span id="a"><a href="index.jsp">忘记密码</a></span>
                    </div>
                </li>
            </ul>
        </form>
    </div>
</body>
</html>